#include "../api/api.h"
#include "recoProxy/recoProxy.h"

void* pCreateRecoProxy(const char* pUuid, int iUuidLen,void* pCbObj,   vadOptions* pVadOptions, asrOptions* pAsrOptions, getResCb pCbfunc)
{
	recoProxy* pRecoProxy = new recoProxy(pUuid,iUuidLen,pCbObj,pVadOptions,pAsrOptions,pCbfunc);
	return pRecoProxy;
}
void pFeedDataToRecoProxy(void* pRecoProxy,char* pData, int iLen)
{
	recoProxy* pProxy = static_cast<recoProxy*> (pRecoProxy);
	pProxy->feedData(pData,iLen);
}

void pCloseRecoProxy(void* pRecoProxy)
{
	recoProxy* pProxy = static_cast<recoProxy*> (pRecoProxy);
	pProxy->close();
	delete pProxy;
}
